package com.infoland.afanmall.base.dialog;

import android.content.Context;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.infoland.afanmall.R;
import com.infoland.afanmall.base.util.ToolsKit;
import com.vondear.rxtools.view.dialog.RxDialog;

/**
 *
 */
public class OpenIsOk_2_Dialog extends RxDialog {
    private TextView open_txt1;
    private TextView open_txt2;
    private Button open_bt1;
    private Button open_bt2;

    private void initView() {
        View dialogView = ToolsKit.getView(R.layout.open_yes_or_no);
        open_txt1 = dialogView.findViewById(R.id.open_txt1);
        open_txt2 = dialogView.findViewById(R.id.open_txt2);
        open_bt1 = dialogView.findViewById(R.id.open_bt1);
        open_bt2 = dialogView.findViewById(R.id.open_bt2);
        setContentView(dialogView);
    }

    public void setContent(String title, String content, String leftBt, String rightBt) {
        open_txt1.setText(title + "");
        open_txt2.setText(content + "");
        open_bt1.setText(leftBt + "");
        open_bt2.setText(rightBt + "");
    }


    public OpenIsOk_2_Dialog(Context context, int themeResId) {
        super(context, themeResId);
        initView();
    }

    public OpenIsOk_2_Dialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
        initView();

    }

    public OpenIsOk_2_Dialog(Context context) {
        super(context);
        initView();

    }

    public OpenIsOk_2_Dialog(Context context, float alpha, int gravity) {
        super(context, alpha, gravity);
        initView();

    }


    public TextView getOpen_txt1() {
        return open_txt1;
    }

    public void setOpen_txt1(TextView open_txt1) {
        this.open_txt1 = open_txt1;
    }

    public TextView getOpen_txt2() {
        return open_txt2;
    }

    public void setOpen_txt2(TextView open_txt2) {
        this.open_txt2 = open_txt2;
    }

    public Button getOpen_bt1() {
        return open_bt1;
    }

    public void setOpen_bt1(Button open_bt1) {
        this.open_bt1 = open_bt1;
    }

    public Button getOpen_bt2() {
        return open_bt2;
    }

    public void setOpen_bt2(Button open_bt2) {
        this.open_bt2 = open_bt2;
    }
}
